Skip to main content

Continuity and Limits

The Concept of Continuity

A function is continuous if it has no jumps. Thus, small changes in each x0x_0, the input, correspond to small changes in the output, f(x0)f(x_0).

Fig. 15

Figure: The above figure is an example of linear growth.

Thomas Robert Malthus (1766-1834) warned about the dangers of uninhibited population growth.

Details

A function is said to be discontinuous if it has jumps. The function is continuous if it has no jumps. Thus, for a continuous function, small changes in each x0x_0, the input, correspond to small changes in the output, f(x0)f(x_0).

Note

Note that polynomials are continuous as are logarithms (for positive numbers).

Discrete Probabilities and Cumulative Distribution Functions

The cumulative distribution function for a discrete random variable is discontinuous.

Fig. 16

Details

Definition

If XX is a random variable with a discrete probability distribution and the probability mass function of

p(x)=P[X=x]p(x)=P[X=x]

then the cumulative distribution function, defined by

F(X)=P[Xx]F(X)=P[X\leq x]

is discontinuous, i.e. it jumps at points in which a positive probability occurs.

Note

When drawing discontinuous functions, it is common practice to use a filled circle at (x,f(x))(x,f(x)) to clarify what the function value is at a point xx of discontinuity.

Examples

Example

If a coin is tossed three independent times and XX denotes the number of heads, then XX can only take on the values 00, 11, 22 and 33. The probability of landing exactly xx heads, P(X=x)P(X=x), is p(x)=(nx)pn(1p)nxp(x) = \displaystyle\binom{n}{x} p^n (1-p)^{n-x}. The probabilities are:

xp(x)F(x)0181813848238783181\begin{array}{c c c} \hline \\ x & p(x) & F(x) \\ \hline \\ 0 & \displaystyle\frac{1}{8} & \displaystyle\frac{1}{8} \\ 1 & \displaystyle\frac{3}{8} & \displaystyle\frac{4}{8} \\ 2 & \displaystyle\frac{3}{8} & \displaystyle\frac{7}{8} \\ 3 & \displaystyle\frac{1}{8} & 1 \\ \hline \end{array}

The cumulative distribution function, F(x)=P[Xx]=txp(t)F(x)=P[X \leq x] = \displaystyle\sum_{t\leq x} p(t) has jumps and is therefore discontinuous.

Note

Notice on the above figure how the circles are filled in, the solid circles indicate where the function value is.

Notes on Discontinuous Function

A function is discontinuous for values or ranges of the variable that do not vary continuously as the variable increases. In other words, breaks or jumps.

Fig. 17

Figure: f(x)=1xf(x) = \displaystyle\frac{1}{x}, where x0x\neq 0

Details

A function can be discontinuous in a number of different ways. Most commonly, it may jump at certain points or increase without bound in certain places.

Consider the function ff, defined by f(x)=1/xf(x)= 1/x when x0x\neq 0. Naturally, 1/x1/x is not defined for x=0x=0. This function increases towards ++\infty as xx goes to zero from the right but decreases to -\infty as xx goes to zero from the left. Since the function does not have the same limit from the right and the left, it cannot be made continuous at x=0x=0 even if one tries to define f(0)f(0) as some number.

Continuity of Polynomials

All polynomials, p(x)=a0+a1x+a2x2++anxnp(x)=a_0+a_1x+a_2x^2+\ldots +a_n x^n are continuous.

Fig. 18

Details

It is easy to show that simple polynomials such as p(x)=xp(x)=x, p(x)=a+bxp(x)=a+bx, p(x)=ax2+bx+cp(x)=ax^2+bx+c are continuous functions.

It is generally true that a polynomial of the form

p(x)=a0+a1x+a2x2++anxnp(x)=a_0+a_1x+a_2x^2+\ldots +a_n x^n

is a continuous function.

Simple Limits

A limit is used to describe the value that a function or sequence approaches as the input or index approaches some value. Limits are used to define continuity, derivatives and integrals.

Fig. 19

Figure: f(x)=xxf(x) = x^x, for x>0x>0

Details

Definition

A limit describes the value that a function or sequence approaches as the input or index approaches some value.

Limits are essential to calculus (and mathematical analysis in general) and are used to define continuity, derivatives and integrals.

Consider a function f(x)f(x) and a point x0{x}_0. If f(x)f(x) gets steadily closer to some number cc as xx gets closer to a number x0x_0, then cc is called the limit of f(x)f(x) as xx goes to x0x_0 and is written as:

c=limxx0f(x)c = \lim_{x\to x_0}f(x)

If c=f(x0)c = f(x_0) then ff is continuous at x0x_0.

Examples

Example

Evaluate the limit of f(x)=x216x4f(x) = \displaystyle\frac{x^{2}-16}{x-4} when x4x\rightarrow 4, or

limx4x216x4\lim_{x\rightarrow 4} \displaystyle\frac{x^{2}-16}{x-4}

Notice that in principle we cannot simply stick in the value x=4x=4 since we would then get 0/00/0 which is not defined. However we can look at the numerator and try to factor it. This gives us:

x216x4=(x4)(x+4)x4=x+4\displaystyle\frac{x^{2}-16}{x-4} = \displaystyle\frac{(x-4)(x+4)}{x-4} = x+4

and the result has the obvious limit of 4+4=84+4=8 as x4x\to 4.

Example

Consider the function:

g(x)=1xg(x) = \displaystyle\frac{1}{x}

where xx is a positive real number. As xx increases, g(x)g(x) decreases, approaching 00 but never getting there since 1x=0\displaystyle\frac{1}{x}=0 has no solution. One can therefore say: "The limit of g(x)g(x), as xx approaches infinity, is 00," and write:

limxg(x)=0\lim_{x\to\infty} g(x)=0

More on Limits

Limits impose a certain range of values that may be applied to the function.

Fig. 20

Figure: The function f(x)=11+exf(x)= \displaystyle\frac{1}{1+e^{-x}}

Examples

Example

The Beverton-Holt stock recruitment curve is given by:

R=αS1+SKR=\displaystyle\frac{\alpha S}{1+\displaystyle\frac{S}{K}}

where α,K>0\alpha, K >0 are constants and SS is biomass and RR is recruitment

The behavior of this curve as SS increases SS\rightarrow\infty is

limSαS1+SK=αK\lim_{S\to\infty}\displaystyle\frac{\alpha S}{1+\displaystyle\frac{S}{K}} =\alpha K

This is seen by rewriting the formula as follows:

limSαS1+SK=limSα1S+1K=αK\lim_{S\to\infty}\displaystyle\frac{\alpha S}{1+\displaystyle\frac{S}{K}} = \lim_{S\to\infty}\displaystyle\frac{\alpha }{\displaystyle\frac{1}{S}+\displaystyle\frac{1}{K}} =\alpha K

Example

A popular model for proportions is:

f(x)=11+exf(x) = \displaystyle\frac{1}{1+e^{-x}}

As x increases, exe^{-x} decreases which implies that the term 1+ex1+e^{-x} decreases and hence 11+ex\displaystyle\frac{1}{1+e^{-x}} increases, from which it follows that ff is an increasing function.

Notice that f(0)=12f(0)=\displaystyle\frac{1}{2} and further,

limxf(x)=1\lim_{x\to\infty} f(x) = 1

This is seen from considering the components. Since ex=1exe^{-x} = \displaystyle\frac{1}{e^{x}} and the exponential function goes to infinity as xx\to\infty, exe^{-x} goes to 00 and hence f(x)f(x) goes to 1.

Through a similar analysis one finds that:

limxf(x)=0\lim_{x\to-\infty} f(x)=0

since, as xx\rightarrow \infty, first x-x\rightarrow \infty and second exe^{-x} \rightarrow \infty.

Example

Evaluate the limit of f(x)=x+42xf(x) = \displaystyle\frac{\sqrt{x + 4} - 2}{x} as x0x \to 0, i.e. solve:

limx0x+42x\lim_{x \to 0} \displaystyle\frac{\sqrt{x + 4} - 2}{x}

Since there is an xx in the denominator we cannot just direct substitute the 0 as xx sunce that would give us 00\displaystyle\frac{0}{0}, which is an indeterminate form. We must do some algebra first. The square root makes this a little bit tricky. The way to get rid of the radical is to multiply the numerator by the conjugate.

x+42xx+4+2x+4+2\displaystyle\frac{\sqrt{x + 4} - 2}{x} \cdot \displaystyle\frac{\sqrt{x + 4} + 2}{\sqrt{x + 4} + 2}

This gives us:

(x+4)2+2(x+4)2(x+4)4x(x+4+2)\displaystyle\frac{(\sqrt{x + 4})^2 + 2(\sqrt{x+4}) - 2(\sqrt{x+4}) -4}{x(\sqrt{x + 4} + 2)}

The numerator reduces to xx, and the xx's will cancel out, leaving us with:

1x+4+2\displaystyle\frac{1}{\sqrt{x + 4} + 2}

At this point we can direct substitute 0 for xx, which will give us:

10+4+2\displaystyle\frac{1}{\sqrt{0 + 4} + 2}

Therefore:

limx0x+42x=14\lim_{x \to 0} \displaystyle\frac{\sqrt{x + 4} - 2}{x} = \displaystyle\frac{1}{4}

One-sided Limits

f(x)f(x) may tend towards different numbers depending on whether xx approaches x0x_0 from left or right, usually written:

xx0+x \rightarrow x_{0+} (from the right)

xx0x \rightarrow x_{0-} (from the left).

Fig. 21

Details

Sometimes a function is such that f(x)f(x) tends to different numbers depending on whether xx0x \rightarrow x_0 from the right ( xx0+x \rightarrow x_{0+} ) or from the left (xx0x \rightarrow x_{0-}).

If

limxx0+f(x)=f(x0)\lim_{x \to x_{0+}} f(x)=f(x_0)

then we say that ff is continuous from the right at x0x_0. Same thing goes for the limit from the left. In order for the limit to exist at the point (that is the overall limit, regardless og direction) then it must hold true that

limxx0=limxtox0+\lim_{x \to x_{0-}} = \lim_{x to x_{0+}}

i.e., the limit is the same from both directions.